import * as TYPE from './constants'

const initalState = {
  goods:[]
}


function reducer(state = initalState, action) {
  switch (action.type) {
    case TYPE.FETCH_HOME_DATA:
      return { ...state, goods: action.goods}
      
    default:
      return state;
  }
}

export default reducer